<{include file="top.html"}>
</head>
<body>
<div class="bgcolor"></div>
<div class="xy-panel">
    <div class="xy-panel-top">
        <div class="xy-titlebar">
            <div class="xy-titlebar-left">
                <a class="insertBefore_left_arrow_gray" href="javascript:void(0);"></a>
            </div>
            <div class="xy-titlebar-title">我的粉丝</div>
            <div class="xy-titlebar-right"></div>
        </div>
    </div>
    <div class="xy-panel-content" style="bottom:0;">
        <{if $list}>
            <div class="xy-row vDirectionRow">
                <{include file="User/followMore.html"}>
            </div>
        <{else}>
            <div class="none-box">
                <span class="fans-icon"></span>
                <dl>您还没有任何粉丝</dl>
            </div>
        <{/if}>
    </div>
</div>
<{include file="signBody.html"}>

</body>
</html>
<script src="<{$preStaticUrl}>Wap/js/flexible.js"></script>
<script type="text/javascript" src="<{$preStaticUrl}>js/jquery-2.1.4.min.js"></script>
<script type="text/javascript" src="<{$preStaticUrl}>js/jquery.touchSlider.js"></script>
<script type="text/javascript">
    var loadMore = "<{U('Follow/loadMore')}>";
    var page=2;
    var loadFlag = 1;

    $(function(){
        $('.xy-panel-content').scroll(function() {
           //当内容滚动到底部时加载新的内容
           if ($(this).scrollTop() + $(window).height() + 20 >= $(document).height() && $(this).scrollTop() > 20) {
             //当前要加载的页码
             if(loadFlag){
                 loadFlag = 0;
                 $.getJSON(loadMore, {page: page}, function (data) {
                     if(data.status != 0){
                        layer.msg("数据获取失败，请稍后重试或联系管理员解决！");
                    }else{
                         ++page;
                        $(".xy-row").append(data.dataHtml);
                        if(data.isPage) loadFlag=1;
                    }
                 });
             }
         }
       });
    });



</script>
